package com.ruoyi.merchant.service.impl;

import com.ruoyi.merchant.domain.ImsExpressInfo;
import com.ruoyi.merchant.mapper.ImsExpressInfoMapper;
import com.ruoyi.merchant.service.IImsExpressInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 快递地址Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-10
 */
@Service
public class ImsExpressInfoServiceImpl implements IImsExpressInfoService
{
    @Autowired
    private ImsExpressInfoMapper imsExpressInfoMapper;

    /**
     * 查询快递地址
     * 
     * @param id 快递地址主键
     * @return 快递地址
     */
    @Override
    public ImsExpressInfo selectImsExpressInfoById(Long id)
    {
        return imsExpressInfoMapper.selectImsExpressInfoById(id);
    }

    /**
     * 查询快递地址列表
     * 
     * @param imsExpressInfo 快递地址
     * @return 快递地址
     */
    @Override
    public List<ImsExpressInfo> selectImsExpressInfoList(ImsExpressInfo imsExpressInfo)
    {
        return imsExpressInfoMapper.selectImsExpressInfoList(imsExpressInfo);
    }

    /**
     * 新增快递地址
     * 
     * @param imsExpressInfo 快递地址
     * @return 结果
     */
    @Override
    public int insertImsExpressInfo(ImsExpressInfo imsExpressInfo)
    {
        return imsExpressInfoMapper.insertImsExpressInfo(imsExpressInfo);
    }

    /**
     * 修改快递地址
     * 
     * @param imsExpressInfo 快递地址
     * @return 结果
     */
    @Override
    public int updateImsExpressInfo(ImsExpressInfo imsExpressInfo)
    {
        return imsExpressInfoMapper.updateImsExpressInfo(imsExpressInfo);
    }

    /**
     * 批量删除快递地址
     * 
     * @param ids 需要删除的快递地址主键
     * @return 结果
     */
    @Override
    public int deleteImsExpressInfoByIds(Long[] ids)
    {
        return imsExpressInfoMapper.deleteImsExpressInfoByIds(ids);
    }

    /**
     * 删除快递地址信息
     * 
     * @param id 快递地址主键
     * @return 结果
     */
    @Override
    public int deleteImsExpressInfoById(Long id)
    {
        return imsExpressInfoMapper.deleteImsExpressInfoById(id);
    }
}
